package com.hllxd.hism.star.basic.service.model;

import lombok.Data;

/**
 * author: xiyong.lxy
 * date: 2018-7-6 14:53
 */
@Data
public class ReasonEntity {
    String groupid;
    String shopid;
    String shopname;
    String orderkey;
    String reason;
    String saasversion;
    String deviceversion;
    String reportdate;
    String reasonid;
    String orderkeytype;

    public static ReasonEntity build(BillCheckLogging logging) {
        ReasonEntity thiz = new ReasonEntity();
        thiz.setGroupid(logging.getGroupID().toString());
        thiz.setShopid(logging.getShopID().toString());
        thiz.setShopname(logging.getShopName());
        thiz.setOrderkey(logging.getSaasOrderKey());
        thiz.setReason(logging.getReason());
        thiz.setSaasversion(logging.getSaasVersion());
        thiz.setDeviceversion(logging.getDeviceVersion());
        thiz.setReportdate(logging.getReportDate().toString());
        thiz.setReasonid(logging.getReasonID());
        thiz.setOrderkeytype("1");
        return thiz;
    }
}
